<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<helink>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{$tt}></title>
<link href="<{$smarty.const.BASEPATH}>/css/tablecss.css" rel="stylesheet">
<script type="text/javascript" src="<{$smarty.const.WEBDIR}>js/admin.js"></script>
<link href="<{$smarty.const.BASEPATH}>/css/css.css" type="text/css" rel="stylesheet" />

</helink>

<body>

<div class="divtitle"><span style="float:left;"><strong>◆<{$tt}></strong> </span>  &nbsp;<span> <{foreach item=item key=key from=$typearr}> <a href="<{spUrl c=link a=index type=$key}>"<{if $key eq $type}> style="color:red;"<{/if}>><{$item}></a> <{/foreach}></span><span style="float:right;"> <a href="<{spUrl c=link a=add type=$type}>"> +添加<{$tt}></a> / <a href="javascript:history.go(-1);"><-后退 </a></span></div>
<form name="form" method="post" action="">
<input type="hidden" name="selids" value=""/>
<table class="table">
	<tr class="table-title">
		<td>ID编号</td>
		<td>标题/描述</td>



		<td>状态</td>

		<td>操作</td>
	</tr>

<{foreach item=item name=url from=$arr}>  
		<tr class="table-content" onmouseover="javascript:this.bgColor='#FFFF98'" onmouseout="javascript:this.bgColor='#FFFFFF'">
		<td class="td1 border-td"><input type="checkbox" name="ids" id="ids" value="<{$item.link_id}>"/><{$item.link_id}></td>
		<td class="td3 border-td">[<{$item.link_id}>]<{$item.link_title}> </td>

		<td class="td6 border-td"><{$item.type}></td>

		<td class="td8 border-td"> <a href="<{spUrl c=link a=edit type=$type link_id=$item.link_id}>">编辑</a> | <a href="<{spUrl c=link a=del type=$type link_id=$item.link_id}>" onClick="return confirm('确认删除吗？')">删除</a></td>

	</tr>
<{foreachelse}><{/foreach}>  
<tr><td colspan="7"><button name="select1" onClick="selAll(this.form.ids)" type="button">全选</button>
   <button name="select2" onClick="noSelAll(this.form.ids)" type="button">反选</button>
   <button name="del" type="button" onClick="subform(this.form,this.form.ids,'<{spUrl c=link type=$type a=del}>','')">删除选中</button>
   <button name="reset" type="reset">重置</button>
</form></td></tr>
</table>
<{if $tPageBar ne null}>
                    <div id="pager">
                    	分页 <a href="<{spUrl c=link a=index page=$tPageBar.prev_page size=$tPageBar.page_size type=$type}>"><img src="<{$smarty.const.BASEPATH}>/images/admin/img/icons/arrow_left.gif" width="16" height="16" border="0" /></a> 
                    	<input size="2" value="<{$tPageBar.current_page}>" type="text" name="page" id="page" /> 
                    	<a href="<{spUrl c=link a=index page=$tPageBar.next_page size=$tPageBar.page_size type=$type}>"><img src="<{$smarty.const.BASEPATH}>/images/admin/img/icons/arrow_right.gif" width="16" height="16" border="0" /></a>共 <{$tPageBar.total_page}>
                    页 | 显示 <select id="size" name="size" onchange="location.href='<{spUrl c=link a=index page=1 type=$type}>?size='+$('#size').val();">
                    				<option <{if $tPageBar.page_size eq 10}>selected="selected"<{/if}>>10</option>
                                    <option <{if $tPageBar.page_size eq 20}>selected="selected"<{/if}>>20</option>
                                    <option <{if $tPageBar.page_size eq 50}>selected="selected"<{/if}>>50</option>
                                    <option <{if $tPageBar.page_size eq 100}>selected="selected"<{/if}>>100</option>
                    			</select> 
                    每页 | 共 <strong><{$tPageBar.total_count}></strong> 条记录
                    </div>
                    <{/if}>
</div> 
</body>

</html>
